@import '../theming/all';
@import '../theming/theming';

// Includes all of the color styles.
@mixin zitadel-lgn-color($config-or-theme) {
    // In case a theme object has been passed instead of a configuration for
    // the color system, extract the color config from the theme object.
    $config: if(lgn-private-is-theme-object($config-or-theme),
        lgn-get-color-config($config-or-theme), $config-or-theme);
  
    @if $config == null {
      @error 'No color configuration specified.';
    }
  
    // includes all themes with given color
    @include zitadel-lgn-theme((
      color: $config,
    ));
}
